package com.sne.sys.entity;

import com.sne.common.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 字典项
 * </p>
 *
 * @author fanghh
 * @since 2020-01-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysDictItem对象", description = "字典项")
public class SysDictItem extends BaseModel<SysDictItem> {

    @NotBlank(message = "字典项编号不为空")
    @ApiModelProperty(value = "字典项编号")
    private String itemCode;


    @NotBlank(message = "字典项名称不为空")
    @ApiModelProperty(value = "字典项名")
    private String itemName;

    @ApiModelProperty(value = "字典组id")
    @NotNull(message = "字典组id不能为空")
    private Long dictId;

    @ApiModelProperty(value = "状态")
    private Boolean state;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序值不能为空")
    private Integer sort;

}
